package org.example.demo1.Entity;

public class Permission {
    private int permission_id;
    private String permission_name;
    private String description;
    
    // 构造函数
    public Permission() {
    }
    
    public Permission(int permission_id, String permission_name, String description) {
        this.permission_id = permission_id;
        this.permission_name = permission_name;
        this.description = description;
    }
    
    // Getter 和 Setter 方法
    public int getPermission_id() {
        return permission_id;
    }
    
    public void setPermission_id(int permission_id) {
        this.permission_id = permission_id;
    }
    
    public String getPermission_name() {
        return permission_name;
    }
    
    public void setPermission_name(String permission_name) {
        this.permission_name = permission_name;
    }
    
    // 添加 getDescription 方法
    public String getDescription() {
        return description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    @Override
    public String toString() {
        return "Permission{" +
                "permission_id=" + permission_id +
                ", permission_name='" + permission_name + '\'' +
                ", description='" + description + '\'' +
                '}';
    }
}
